﻿#ifndef EXPRESS_H
#define EXPRESS_H

#include "common/baseeditor_dialog.h"
#include "bestfreight.h"

namespace Ui {
class Express;
}

class Express : public BaseEditorDialog
{
    Q_OBJECT

public:
    explicit Express(QWidget *parent = 0);
    ~Express();

    void generateMenu();
    void setHeaderData();
    void updateView(const QString &location, double dMass);
    void processPostExpress(const QString &location, double mass);
    void processPostBubble(const QString &location, double mass, double volume);
    void processPost(const QString &location,double mass,double extra);
    void processPostOver(const QString &location,double mass,double extra);
    void processAneExpress(const QString &location, double mass);
    void getNotice();
    void showBestFreight();

private slots:
    void on_btn_calc_clicked();
    void on_check_post_stateChanged(int state);
    void on_check_ane_stateChanged(int state);

private:
    Ui::Express *ui;

    bool enablePost;
    bool enableAne;
    QString noticeTable;
    QStandardItemModel *_model;
};

#endif // EXPRESS_H
